package com.cjj2016.cjj.mycanvasdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class CanvasActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_canvas);

        int drawModelVal = getIntent().getIntExtra("drawModel",0);

        MyView myView = (MyView) findViewById(R.id.myView);
        myView.setDrawMode(drawModelVal);

    }
}
